﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Axe.Data.Mapping.Exceptions
{
    public class MappingException : Exception
    {
        public Type TargetType { get; set; }

        public MappingException()
            : base()
        {
        }

        public MappingException(Type targetType,string message)
            : base(message)
        {
            TargetType = targetType;
        }

        public MappingException(Type targetType, string format,params object[] args)
            : base(String.Format(format, args))
        {
            TargetType = targetType;
        }

    }
}
